#include<stdio.h>
#include<iostream>
#include<string.h>
using namespace std;
int main()
{
	int m, power,day;
	while (cin >> m)
	{
		day = 0;
		power = 1;
		while (m > 0)
		{
			day++;
			m -= power;
			power *= 2;
		}
		cout << day << endl;
	}
	return 0;
}